package nl.depository.pim.pages.types;

import org.apache.tapestry5.Field;
import org.apache.tapestry5.MarkupWriter;
import org.apache.tapestry5.ValidationException;
import org.apache.tapestry5.internal.translator.AbstractTranslator;
import org.apache.tapestry5.services.FormSupport;
import org.joda.time.DateTime;

public class FolderType
{
	public class Translator extends AbstractTranslator<DateTime>
	{
		protected Translator(String name, Class<DateTime> type, String messageKey)
		{
			super(name, type, messageKey);
		}

		public String toClient(DateTime value)
		{
			return value.toString();
		}

		public DateTime parseClient(Field field, String clientValue, String message) throws ValidationException
		{
			return null;
		}

		public void render(Field field, String message, MarkupWriter writer, FormSupport formSupport) {}
	}
}